public class HeavyLoadText {
    public static void main(String[] args) {
        int a=3;
        int b=9;
        int c=22;
        System.out.println(sum(a,b));
        System.out.println(sum(a,b,c));
        double d=1.2;
        double e=2.5;
        System.out.println(sum(d,e));
    }

    public static int sum(int a,int b) {
        return a+b;
    }

    public static int sum(int a,int b,int c) {
        return a+b+c;
    }
    public static double sum(double a,double b){
        return a+b;
    }
}
